home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / cmds.fmt / telnet.man < prev    next >
Encoding:
Text File  |  1989-04-05  |  15.4 KB  |  397 lines

  1.  
  2.  
  3.  
  4. TELNET                    User Commands                    TELNET
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      telnet - user interface to the TELNET protocol
  10.  
  11. SSYYNNOOPPSSIISS
  12.      telnet [ host [ port ] ]
  13.  
  14. DDEESSCCRRIIPPTTIIOONN
  15.      _T_e_l_n_e_t is used to communicate with another host using the
  16.      TTEELLNNEETT protocol.  If _t_e_l_n_e_t is invoked without arguments, it
  17.      enters command mode, indicated by its prompt ("telnet>").
  18.      In this mode, it accepts and executes the commands listed
  19.      below.  If it is invoked with arguments, it performs an ooppeenn
  20.      command (see below) with those arguments.
  21.  
  22.      Once a connection has been opened, _t_e_l_n_e_t enters an input
  23.      mode.  The input mode entered will be either "character at a
  24.      time" or "line by line" depending on what the remote system
  25.      supports.
  26.  
  27.      In "character at a time" mode, most text typed is immedi-
  28.      ately sent to the remote host for processing.
  29.  
  30.      In "line by line" mode, all text is echoed locally, and
  31.      (normally) only completed lines are sent to the remote host.
  32.      The "local echo character" (initially "^E") may be used to
  33.      turn off and on the local echo (this would mostly be used to
  34.      enter passwords without the password being echoed).
  35.  
  36.      In either mode, if the _l_o_c_a_l_c_h_a_r_s toggle is TRUE (the
  37.      default in line mode; see below), the user's _q_u_i_t, _i_n_t_r, and
  38.      _f_l_u_s_h characters are trapped locally, and sent as TTEELLNNEETT
  39.      protocol sequences to the remote side.  There are options
  40.      (see ttooggggllee _a_u_t_o_f_l_u_s_h and ttooggggllee _a_u_t_o_s_y_n_c_h below) which
  41.      cause this action to flush subsequent output to the terminal
  42.      (until the remote host acknowledges the TTEELLNNEETT sequence) and
  43.      flush previous terminal input (in the case of _q_u_i_t and
  44.      _i_n_t_r).
  45.  
  46.      While connected to a remote host, _t_e_l_n_e_t command mode may be
  47.      entered by typing the _t_e_l_n_e_t "escape character" (initially
  48.      "^]").  When in command mode, the normal terminal editing
  49.      conventions are available.
  50.  
  51.      CCOOMMMMAANNDDSS
  52.  
  53.      The following commands are available.  Only enough of each
  54.      command to uniquely identify it need be typed (this is also
  55.      true for arguments to the mmooddee, sseett, ttooggggllee, and ddiissppllaayy
  56.      commands).
  57.  
  58.      ooppeenn _h_o_s_t [ _p_o_r_t ]
  59.           Open a connection to the named host.  If no port number
  60.  
  61.  
  62.  
  63. Sprite v1.0               May 10, 1986                          1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. TELNET                    User Commands                    TELNET
  71.  
  72.  
  73.  
  74.           is specified, _t_e_l_n_e_t will attempt to contact a TTEELLNNEETT
  75.           server at the default port.  The host specification may
  76.           be either a host name (see _h_o_s_t_s(5)) or an Internet
  77.           address specified in the "dot notation" (see _i_n_e_t(3N)).
  78.  
  79.      cclloossee
  80.           Close a TTEELLNNEETT session and return to command mode.
  81.  
  82.      qquuiitt
  83.           Close any open TTEELLNNEETT session and exit _t_e_l_n_e_t.  An end
  84.           of file (in command mode) will also close a session and
  85.           exit.
  86.  
  87.      zz
  88.           Suspend _t_e_l_n_e_t.  This command only works when the user
  89.           is using the _c_s_h(1).
  90.  
  91.      mmooddee _t_y_p_e
  92.           _T_y_p_e is either _l_i_n_e (for "line by line" mode) or _c_h_a_r_-
  93.           _a_c_t_e_r (for "character at a time" mode).  The remote
  94.           host is asked for permission to go into the requested
  95.           mode.  If the remote host is capable of entering that
  96.           mode, the requested mode will be entered.
  97.  
  98.      ssttaattuuss
  99.           Show the current status of _t_e_l_n_e_t.  This includes the
  100.           peer one is connected to, as well as the current mode.
  101.  
  102.      ddiissppllaayy [ _a_r_g_u_m_e_n_t... ]
  103.           Displays all, or some, of the sseett and ttooggggllee values
  104.           (see below).
  105.  
  106.      ?? [ _c_o_m_m_a_n_d ]
  107.           Get help.  With no arguments, _t_e_l_n_e_t prints a help sum-
  108.           mary.  If a command is specified, _t_e_l_n_e_t will print the
  109.           help information for just that command.
  110.  
  111.      sseenndd _a_r_g_u_m_e_n_t_s
  112.           Sends one or more special character sequences to the
  113.           remote host.  The following are the arguments which may
  114.           be specified (more than one argument may be specified
  115.           at a time):
  116.  
  117.           _e_s_c_a_p_e
  118.                Sends the current _t_e_l_n_e_t escape character (ini-
  119.                tially "^]").
  120.  
  121.           _s_y_n_c_h
  122.                Sends the TTEELLNNEETT SSYYNNCCHH sequence.  This sequence
  123.                causes the remote system to discard all previously
  124.                typed (but not yet read) input.  This sequence is
  125.                sent as TCP urgent data (and may not work if the
  126.  
  127.  
  128.  
  129. Sprite v1.0               May 10, 1986                          2
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. TELNET                    User Commands                    TELNET
  137.  
  138.  
  139.  
  140.                remote system is a 4.2 BSD system -- if it doesn't
  141.                work, a lower case "r" may be echoed on the termi-
  142.                nal).
  143.  
  144.           _b_r_k
  145.                Sends the TTEELLNNEETT BBRRKK (Break) sequence, which may
  146.                have significance to the remote system.
  147.  
  148.           _i_p
  149.                Sends the TTEELLNNEETT IIPP (Interrupt Process) sequence,
  150.                which should cause the remote system to abort the
  151.                currently running process.
  152.  
  153.           _a_o
  154.                Sends the TTEELLNNEETT AAOO (Abort Output) sequence, which
  155.                should cause the remote system to flush all output
  156.                ffrroomm the remote system ttoo the user's terminal.
  157.  
  158.           _a_y_t
  159.                Sends the TTEELLNNEETT AAYYTT (Are You There) sequence, to
  160.                which the remote system may or may not choose to
  161.                respond.
  162.  
  163.           _e_c
  164.                Sends the TTEELLNNEETT EECC (Erase Character) sequence,
  165.                which should cause the remote system to erase the
  166.                last character entered.
  167.  
  168.           _e_l
  169.                Sends the TTEELLNNEETT EELL (Erase Line) sequence, which
  170.                should cause the remote system to erase the line
  171.                currently being entered.
  172.  
  173.           _g_a
  174.                Sends the TTEELLNNEETT GGAA (Go Ahead) sequence, which
  175.                likely has no significance to the remote system.
  176.  
  177.           _n_o_p
  178.                Sends the TTEELLNNEETT NNOOPP (No OPeration) sequence.
  179.  
  180.           ?
  181.                Prints out help information for the sseenndd command.
  182.  
  183.      sseett _a_r_g_u_m_e_n_t _v_a_l_u_e
  184.           Set any one of a number of _t_e_l_n_e_t variables to a
  185.           specific value.  The special value "off" turns off the
  186.           function associated with the variable.  The values of
  187.           variables may be interrogated with the ddiissppllaayy command.
  188.           The variables which may be specified are:
  189.  
  190.           _e_c_h_o
  191.                This is the value (initially "^E") which, when in
  192.  
  193.  
  194.  
  195. Sprite v1.0               May 10, 1986                          3
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. TELNET                    User Commands                    TELNET
  203.  
  204.  
  205.  
  206.                "line by line" mode, toggles between doing local
  207.                echoing of entered characters (for normal process-
  208.                ing), and suppressing echoing of entered charac-
  209.                ters (for entering, say, a password).
  210.  
  211.           _e_s_c_a_p_e
  212.                This is the _t_e_l_n_e_t escape character (initially
  213.                "^[") which causes entry into _t_e_l_n_e_t command mode
  214.                (when connected to a remote system).
  215.  
  216.           _i_n_t_e_r_r_u_p_t
  217.                If _t_e_l_n_e_t is in _l_o_c_a_l_c_h_a_r_s mode (see ttooggggllee _l_o_c_a_l_-
  218.                _c_h_a_r_s below) and the _i_n_t_e_r_r_u_p_t character is typed,
  219.                a TTEELLNNEETT IIPP sequence (see sseenndd _i_p above) is sent
  220.                to the remote host.  The initial value for the
  221.                interrupt character is taken to be the terminal's
  222.                iinnttrr character.
  223.  
  224.           _q_u_i_t
  225.                If _t_e_l_n_e_t is in _l_o_c_a_l_c_h_a_r_s mode (see ttooggggllee _l_o_c_a_l_-
  226.                _c_h_a_r_s below) and the _q_u_i_t character is typed, a
  227.                TTEELLNNEETT BBRRKK sequence (see sseenndd _b_r_k above) is sent
  228.                to the remote host.  The initial value for the
  229.                quit character is taken to be the terminal's qquuiitt
  230.                character.
  231.  
  232.           _f_l_u_s_h_o_u_t_p_u_t
  233.                If _t_e_l_n_e_t is in _l_o_c_a_l_c_h_a_r_s mode (see ttooggggllee _l_o_c_a_l_-
  234.                _c_h_a_r_s below) and the _f_l_u_s_h_o_u_t_p_u_t character is
  235.                typed, a TTEELLNNEETT AAOO sequence (see sseenndd _a_o above) is
  236.                sent to the remote host.  The initial value for
  237.                the flush character is taken to be the terminal's
  238.                fflluusshh character.
  239.  
  240.           _e_r_a_s_e
  241.                If _t_e_l_n_e_t is in _l_o_c_a_l_c_h_a_r_s mode (see ttooggggllee _l_o_c_a_l_-
  242.                _c_h_a_r_s below), aanndd if _t_e_l_n_e_t is operating in "char-
  243.                acter at a time" mode, then when this character is
  244.                typed, a TTEELLNNEETT EECC sequence (see sseenndd _e_c above) is
  245.                sent to the remote system.  The initial value for
  246.                the erase character is taken to be the terminal's
  247.                eerraassee character.
  248.  
  249.           _k_i_l_l
  250.                If _t_e_l_n_e_t is in _l_o_c_a_l_c_h_a_r_s mode (see ttooggggllee _l_o_c_a_l_-
  251.                _c_h_a_r_s below), aanndd if _t_e_l_n_e_t is operating in "char-
  252.                acter at a time" mode, then when this character is
  253.                typed, a TTEELLNNEETT EELL sequence (see sseenndd _e_l above) is
  254.                sent to the remote system.  The initial value for
  255.                the kill character is taken to be the terminal's
  256.                kkiillll character.
  257.  
  258.  
  259.  
  260.  
  261. Sprite v1.0               May 10, 1986                          4
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268. TELNET                    User Commands                    TELNET
  269.  
  270.  
  271.  
  272.           _e_o_f
  273.                If _t_e_l_n_e_t is operating in "line by line" mode,
  274.                entering this character as the first character on
  275.                a line will cause this character to be sent to the
  276.                remote system.  The initial value of the eof char-
  277.                acter is taken to be the terminal's eeooff character.
  278.  
  279.      ttooggggllee _a_r_g_u_m_e_n_t_s...
  280.           Toggle (between TRUE and FALSE) various flags that con-
  281.           trol how _t_e_l_n_e_t responds to events.  More than one
  282.           argument may be specified.  The state of these flags
  283.           may be interrogated with the ddiissppllaayy command.  Valid
  284.           arguments are:
  285.  
  286.           _l_o_c_a_l_c_h_a_r_s
  287.                If this is TRUE, then the _f_l_u_s_h, _i_n_t_e_r_r_u_p_t, _q_u_i_t,
  288.                _e_r_a_s_e, and _k_i_l_l characters (see sseett above) are
  289.                recognized locally, and transformed into (hope-
  290.                fully) appropriate TTEELLNNEETT control sequences
  291.                (respectively _a_o, _i_p, _b_r_k, _e_c, and _e_l; see sseenndd
  292.                above).  The initial value for this toggle is TRUE
  293.                in "line by line" mode, and FALSE in "character at
  294.                a time" mode.
  295.  
  296.           _a_u_t_o_f_l_u_s_h
  297.                If _a_u_t_o_f_l_u_s_h and _l_o_c_a_l_c_h_a_r_s are both TRUE, then
  298.                when the _a_o, _i_n_t_r, or _q_u_i_t characters are recog-
  299.                nized (and transformed into TTEELLNNEETT sequences; see
  300.                sseett above for details), _t_e_l_n_e_t refuses to display
  301.                any data on the user's terminal until the remote
  302.                system acknowledges (via a TTEELLNNEETT _T_i_m_i_n_g _M_a_r_k
  303.                option) that it has processed those TTEELLNNEETT
  304.                sequences.  The initial value for this toggle is
  305.                TRUE if the terminal user had not done an "stty
  306.                noflsh", otherwise FALSE (see _s_t_t_y(_1)).
  307.  
  308.           _a_u_t_o_s_y_n_c_h
  309.                If _a_u_t_o_s_y_n_c_h and _l_o_c_a_l_c_h_a_r_s are both TRUE, then
  310.                when either the _i_n_t_r or _q_u_i_t characters is typed
  311.                (see sseett above for descriptions of the _i_n_t_r and
  312.                _q_u_i_t characters), the resulting TTEELLNNEETT sequence
  313.                sent is followed by the TTEELLNNEETT SSYYNNCCHH sequence.
  314.                This procedure sshhoouulldd cause the remote system to
  315.                begin throwing away all previously typed input
  316.                until both of the TTEELLNNEETT sequences have been read
  317.                and acted upon.  The initial value of this toggle
  318.                is FALSE.
  319.  
  320.           _c_r_m_o_d
  321.                Toggle carriage return mode.  When this mode is
  322.                enabled, most carriage return characters received
  323.                from the remote host will be mapped into a
  324.  
  325.  
  326.  
  327. Sprite v1.0               May 10, 1986                          5
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334. TELNET                    User Commands                    TELNET
  335.  
  336.  
  337.  
  338.                carriage return followed by a line feed.  This
  339.                mode does not affect those characters typed by the
  340.                user, only those received from the remote host.
  341.                This mode is not very useful unless the remote
  342.                host only sends carriage return, but never line
  343.                feed.  The initial value for this toggle is FALSE.
  344.  
  345.           _d_e_b_u_g
  346.                Toggles socket level debugging (useful only to the
  347.                _s_u_p_e_ruser).  The initial value for this toggle is
  348.                FALSE.
  349.  
  350.           _o_p_t_i_o_n_s
  351.                Toggles the display of some internal _t_e_l_n_e_t proto-
  352.                col processing (having to do with TTEELLNNEETT options).
  353.                The initial value for this toggle is FALSE.
  354.  
  355.           _n_e_t_d_a_t_a
  356.                Toggles the display of all network data (in hexa-
  357.                decimal format).  The initial value for this tog-
  358.                gle is FALSE.
  359.  
  360.           ?
  361.                Displays the legal ttooggggllee commands.
  362.  
  363. BBUUGGSS
  364.      There is no adequate way for dealing with flow control.
  365.  
  366.      On some remote systems, echo has to be turned off manually
  367.      when in "line by line" mode.
  368.  
  369.      There is enough settable state to justify a ._t_e_l_n_e_t_r_c file.
  370.  
  371.      No capability for a ._t_e_l_n_e_t_r_c file is provided.
  372.  
  373.      In "line by line" mode, the terminal's _e_o_f character is only
  374.      recognized (and sent to the remote system) when it is the
  375.      first character on a line.
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393. Sprite v1.0               May 10, 1986                          6
  394.  
  395.  
  396.  
  397.